﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Pages.aspx.cs" Inherits="FreeLancer.HRB.WebApp.Admin.Pages.Pages" Title="<%$ Resources:labels, pages %>" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <dxwgv:ASPxGridView ID="ASPxGridViewPages" runat="server"
    AutoGenerateColumns="False" KeyFieldName="UserId"
        SettingsEditing-Mode="Inline" 
        SettingsPager-Visible="true" 
        SettingsBehavior-ConfirmDelete="true"
        SettingsText-CommandCancel="<%$ Resources:labels, cmdCancel %>"
        SettingsText-ConfirmDelete="<%$ Resources:labels, cmdConfirmDelete %>"
        SettingsText-CommandUpdate="<%$ Resources:labels, cmdUpdate %>">
      <Settings ShowFilterRow="True"/>
      <Columns>
        <dxwgv:GridViewCommandColumn VisibleIndex="0" Width="100px">
          <EditButton Visible="True" Text="<%$ Resources:labels, cmdEdit %>">
          </EditButton>
          <DeleteButton Visible="True" Text="<%$ Resources:labels, cmdDelete %>">
          </DeleteButton>
          <ClearFilterButton Visible="True" Text="<%$ Resources:labels, cmdClearFilter %>">
          </ClearFilterButton>
          <CancelButton Text="<%$ Resources:labels, cmdCancel %>">
          </CancelButton>
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewCommandColumn>
        <dxwgv:GridViewDataTextColumn Caption="ID" FieldName="PageID" Visible="false">
        </dxwgv:GridViewDataTextColumn>
        <dxwgv:GridViewDataTextColumn Caption="<%$ Resources:labels, title %>" 
          FieldName="Title" VisibleIndex="1" Width="200px">
          <PropertiesTextEdit>
            <ValidationSettings>
              <RequiredField ErrorText="<%$ Resources:labels, titleReqMsg %>" IsRequired="True" />
            </ValidationSettings>
          </PropertiesTextEdit>
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataTextColumn>
        <dxwgv:GridViewDataTextColumn Caption="<%$ Resources:labels, slug %>" 
          FieldName="Slug" VisibleIndex="2" Width="200px">
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataTextColumn>
        <dxwgv:GridViewDataMemoColumn Caption="<%$ Resources:labels, description %>" 
          FieldName="Description" VisibleIndex="3" Width="200px">
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataMemoColumn>
        <dxwgv:GridViewDataDateColumn Caption="<%$ Resources:labels, dateCreated %>" VisibleIndex="4" Width="100px"
          FieldName="DateCreated" ReadOnly="true">
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataDateColumn>
        <dxwgv:GridViewDataDateColumn Caption="<%$ Resources:labels, dateModified %>" VisibleIndex="5" Width="100px"
          FieldName="DateModified" ReadOnly="true">
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataDateColumn>
        <dxwgv:GridViewDataCheckColumn Caption="<%$ Resources:labels, publish %>" VisibleIndex="6" Width="70px"
          FieldName="IsPulished">
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataCheckColumn>
        <dxwgv:GridViewDataTextColumn Caption="<%$ Resources:labels, language %>" VisibleIndex="7" Width="70px"
          FieldName="Language" ReadOnly="true">
          <HeaderStyle HorizontalAlign="Center" />
        </dxwgv:GridViewDataTextColumn>
      </Columns>
      <SettingsPager SEOFriendly="Enabled" Summary-Visible="true" AlwaysShowPager="true" Mode="ShowAllRecords">
        <Summary AllPagesText="<%$ Resources:labels, usersAllPagesText %>" Text="<%$ Resources:labels, usersPageText %>" />
      </SettingsPager>
  </dxwgv:ASPxGridView>
</asp:Content>

